﻿using AdminManager.System;
using AdminManager.System.AuditLogs;
using AdminManager.System.NavigationsMenu;
using AdminManager.System.OrganizationUnits;
using AdminManager.System.SecurityLogs;
using AutoMapper;
using Volo.Abp.AuditLogging;
using Volo.Abp.Identity;

namespace AdminManager;

public class AdminManagerApplicationAutoMapperProfile : Profile
{
    public AdminManagerApplicationAutoMapperProfile()
    {
        /* You can configure your AutoMapper mapping configuration here.
         * Alternatively, you can split your mapping configurations
         * into multiple profile classes for a better organization. */
        CreateMap<OrganizationUnitDto, OrganizationUnit>().ReverseMap();
        CreateMap<IdentityUserOrganizationUnit,OrganizationUserDto>().ReverseMap();
        CreateMap<AuditLogsDto, AuditLog>().ReverseMap();
        CreateMap<SecurityLogsDto, IdentitySecurityLog>().ReverseMap();
        CreateMap<NavigationsDto, Navigations>().ReverseMap();
        CreateMap<NavigationInputDto, Navigations>().ReverseMap();
    }
}
